﻿#ifndef INPUTBLOCK_H
#define INPUTBLOCK_H

#include <QObject>
#include <QMargins>
#include "AbstractBlock.h"

#include "FlowChart_Global.h"

namespace CVV
{

namespace FlowChart
{
/**
 * @brief 输入逻辑判定块
 */
class CVV_FLOWCHART_EXPORT InputBlock : public AbstractBlock
{
public:
    explicit InputBlock();
    explicit InputBlock(QString &name,QRect &position,double zoom,QString &state,QMargins margins=QMargins(0,0,0,0));
    ~InputBlock()override;

    // AbstractBlock interface
public:
    /**
     * @brief paint 绘制bock 形状
     * @param canvas 画板
     * @param fontSizeInPoints 字体大小
     */
    void paint(QPainter *canvas)override;
    /**
     * @brief getBlockDom
     * @return 返回区域块Dom xml结构
     */
    static QString getBlockDom();

};

}

}
#endif // InputBlock_H
